# 单继承
# coding:UTF-8
# 定义师傅类
class Master(object):
    def __init__(self):
        self.tranfomer = '【七十二变心法绝学】'

    def make_kongfu(self):
        print(f'运用{self.tranfomer}习得这项技能')

# 定义徒弟类
class Prentice(Master):
    pass

if __name__ == '__main__':
    learn = Prentice()
    print(learn.tranfomer) # 对象访问实例属性
    learn.make_kongfu() # 对象调用实例方法